import dbus;

bus = dbus.SessionBus()
obj = bus.get_object("org.kde.konsole",
		"/konsole/MainWindow_1"
	)

konsole = dbus.Interface(obj, "com.trilltech.Qt.QWidget")
konsole.setWindowTitle("ok")

nkonsole = dbus.Interface(obj, "org.kde.KMainWindow")
nkonsole.activateAction("new-tab")
